package com.jing.weibo.mapper.system;

import java.util.List;

import com.jing.weibo.pojo.system.Feedback;
import com.jing.weibo.pojo.system.Stationletter;


/**
 * 站内信的Mapper
 * @author jing.yue
 * @version 2012/11/14 1.0.0
 */
public interface StationletterMapper {

	/**
	 * 保存站内信
	 * @param stationletter
	 * @throws Exception
	 */
	public abstract void saveStationletter(Stationletter stationletter) throws Exception;

	/**
	 * 获取未读站内信记录数
	 * @param username
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findUnStationletterCount(String username) throws Exception;

	/**
	 * 获取站内信
	 * @param stationletter
	 * @return
	 * @throws Exception
	 */
	public abstract List<Feedback> findStationletter(Stationletter stationletter) throws Exception;

	/**
	 * 获取站内信记录数
	 * @param stationletter
	 * @return
	 * @throws Exception
	 */
	public abstract Integer findStationletterCount(Stationletter stationletter) throws Exception;

	/**
	 * 根据ID获取站内信对象
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public abstract Stationletter findById(Integer id) throws Exception;

	/**
	 * 根据ID修改查看状态为已查看
	 * @param id
	 * @throws Exception
	 */
	public abstract void updateSeeStationletter(Integer id) throws Exception;
}